package dancetiktokenumsmongo

const (
	DanceSinglesDayScoreChangeTypeAdd     = 1 //增加
	DanceSinglesDayScoreChangeTypeReduced = 2 //减少

	// 用户双十一活动积分来源
	DanceSinglesDayScoreSourceRoomGift = 1 //刷礼物获得
)

type DanceSinglesDayScoreEnums struct {
}

var DanceSinglesDayScoreEnumsObject DanceSinglesDayScoreEnums

func (e DanceSinglesDayScoreEnums) SourceType() []int {
	return []int{
		DanceSinglesDayScoreSourceRoomGift,
	}
}

func (e DanceSinglesDayScoreEnums) SourceMap() map[int]string {
	m := make(map[int]string)
	for _, s := range e.SourceType() {
		m[s] = e.SourceString(s)
	}
	return m
}

func (e DanceSinglesDayScoreEnums) SourceString(tag int) string {
	switch tag {
	case DanceSinglesDayScoreSourceRoomGift:
		return "刷礼物获得"
	default:
		return "其他"
	}
}

func (e DanceSinglesDayScoreEnums) ChangeType() []int {
	return []int{
		DanceSinglesDayScoreChangeTypeAdd,
		DanceSinglesDayScoreChangeTypeReduced,
	}
}

func (e DanceSinglesDayScoreEnums) ChangeTypeMap() map[int]string {
	m := make(map[int]string)
	for _, s := range e.ChangeType() {
		m[s] = e.ChangeTypeString(s)
	}
	return m
}

func (e DanceSinglesDayScoreEnums) ChangeTypeString(tag int) string {
	switch tag {
	case DanceSinglesDayScoreChangeTypeAdd:
		return "增加"
	case DanceSinglesDayScoreChangeTypeReduced:
		return "减少"
	default:
		return "其他"
	}
}
